import info.clearthought.layout.TableLayout;

import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.BevelBorder;

import net.miginfocom.swing.MigLayout;

import org.jdesktop.application.SingleFrameApplication;

import java.awt.*;
import java.awt.event.*;

import javax.swing.*;




/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
 * 
 */
public class first extends SingleFrameApplication {
    private JPanel topPanel;
    private JPanel jPanel3;
    private JLabel jLabel1;
    private JLabel jLabel2;
    private JLabel jLabel3;
    private JTextArea jTextArea3;
    private JTextArea jTextArea2;
    private JPanel heading;
    private ButtonGroup buttonGroup1;
    private JPanel jPanel1;
    private JButton jButton1;
    private JLabel jLabel5;
    private JLabel jLabel4;
    private JLabel happy;
    private JPanel bar;

    
	static class Action implements ActionListener{    
		public void actionPerformed(ActionEvent e){
			RM frame = new RM();
			frame.setVisible(true);
			}}


    
    
    
    @Override
    protected void startup() {
    	{
    		topPanel = new JPanel();
    		getMainFrame().getContentPane().add(topPanel, BorderLayout.NORTH);
    		GridBagLayout topPanelLayout = new GridBagLayout();
    		topPanelLayout.rowWeights = new double[] {0.0, 0.1};
    		topPanelLayout.rowHeights = new int[] {54, 7};
    		topPanelLayout.columnWeights = new double[] {0.0, 0.1};
    		topPanelLayout.columnWidths = new int[] {146, 7};
    		topPanel.setPreferredSize(new java.awt.Dimension(502, 300));
    		topPanel.setLayout(topPanelLayout);
    		{
    			bar = new JPanel();
    			BoxLayout barLayout = new BoxLayout(bar, javax.swing.BoxLayout.Y_AXIS);
    			bar.setLayout(barLayout);
    			topPanel.add(bar, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    			bar.setName("bar");

    		}
    		{
    			jPanel1 = new JPanel();
    			GridBagLayout jPanel1Layout = new GridBagLayout();
    			jPanel1Layout.rowWeights = new double[] {0.1, 0.0, 0.0, 0.1};
    			jPanel1Layout.rowHeights = new int[] {7, 86, 39, 7};
    			jPanel1Layout.columnWeights = new double[] {0.0, 0.1, 0.1, 0.1};
    			jPanel1Layout.columnWidths = new int[] {181, 7, 7};
    			jPanel1.setLayout(jPanel1Layout);
    			topPanel.add(jPanel1, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    			topPanel.add(getHeading(), new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    			topPanel.add(getJPanel3(), new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    			jPanel1.setName("jPanel1");
    			jPanel1.add(getJButton1(), new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    			jPanel1.add(getJTextArea2(), new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			jPanel1.add(getJTextArea3(), new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			jPanel1.add(getJLabel2(), new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    			jPanel1.add(getJLabel3(), new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    		}
    	}
    	{
	    	getMainFrame().setSize(517, 339);
    	}
        show(topPanel);
    }

    public static void main(String[] args) {
        launch(first.class, args);
    }
    
    private ButtonGroup getButtonGroup1() {
    	if(buttonGroup1 == null) {
    		buttonGroup1 = new ButtonGroup();
    	}
    	return buttonGroup1;
    }

    private JPanel getHeading() {
    	if(heading == null) {
    		heading = new JPanel();
    		heading.setName("heading");
    		heading.add(getJLabel1());
    	}
    	return heading;
    }

    private JLabel getJLabel1() {
    	if(jLabel1 == null) {
    		jLabel1 = new JLabel();
    		jLabel1.setName("jLabel1");
    		jLabel1.setPreferredSize(new java.awt.Dimension(327, 39));
    	}
    	return jLabel1;
    }
    
    private JPanel getJPanel3() {
    	if(jPanel3 == null) {
    		jPanel3 = new JPanel();
    		GridBagLayout jPanel3Layout = new GridBagLayout();
    		jPanel3.setName("jPanel3");
    		jPanel3Layout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1};
    		jPanel3Layout.rowHeights = new int[] {40,40,40,40,40,40};
    		jPanel3Layout.columnWeights = new double[] {0.1, 0.1, 0.1, 0.1};
    		jPanel3Layout.columnWidths = new int[] { 7};
    		jPanel3.setLayout(jPanel3Layout);
    		jPanel3.add(getHappy(), new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    		jPanel3.add(getJLabel4(), new GridBagConstraints(-1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    		jPanel3.add(getJLabel5(), new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    	}
    	
    	return jPanel3;
    }

    private JButton getJButton1() {
    	if(jButton1 == null) {
    		jButton1 = new JButton();
    		jButton1.setName("jButton1");
    		jButton1.setBackground(Color.GREEN);
    		jButton1.addActionListener(new Action ());   
    	}
    	return jButton1;
    }

    private JTextArea getJTextArea2() {
    	if(jTextArea2 == null) {
    		jTextArea2 = new JTextArea();
    		jTextArea2.setName("jTextArea2");
    		jTextArea2.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    		jTextArea2.setPreferredSize(new java.awt.Dimension(50, 25));
    	}
    	return jTextArea2;
    }
    
    private JTextArea getJTextArea3() {
    	if(jTextArea3 == null) {
    		jTextArea3 = new JTextArea();
    		jTextArea3.setName("jTextArea3");
    		jTextArea3.setPreferredSize(new java.awt.Dimension(50, 25));
    		jTextArea3.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    	}
    	return jTextArea3;
    }
    
    private JLabel getJLabel2() {
    	if(jLabel2 == null) {
    		jLabel2 = new JLabel();
    		jLabel2.setName("jLabel2");
    	}
    	return jLabel2;
    }
    
    private JLabel getJLabel3() {
    	if(jLabel3 == null) {
    		jLabel3 = new JLabel();
    		jLabel3.setName("jLabel3");
    	}
    	return jLabel3;
    }
    
    private JLabel getHappy() {
    	if(happy == null) {
    		happy = new JLabel();
    		happy.setName("happy");
    	}
    	return happy;
    }
    
    private JLabel getJLabel4() {
    	if(jLabel4 == null) {
    		jLabel4 = new JLabel();
    		jLabel4.setName("jLabel4");
    	}
    	return jLabel4;
    }
    
    private JLabel getJLabel5() {
    	if(jLabel5 == null) {
    		jLabel5 = new JLabel();
    		jLabel5.setName("jLabel5");
    	}
    	return jLabel5;
    }

}
